package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 用户评论
 * </p>
 *
 * @author chenxuebin
 * @since 2018-11-18
 */
@TableName("t_comment")
public class Comment extends Model<Comment> {

	private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	private Long oid;
	private Long gid;
	/**
	 * 是否匿名
	 */
	@TableField("is_anonymous")
	private Integer isAnonymous;
	/**
	 * 评论者&
	 */
	private String nickname;

	private String gname;
	private String goodspic;

	/**
	 * #评论者头像&
	 */
	private String avatarpic;
	/**
	 * 评价内容&
	 */
	private String info;
	/**
	 * 评分&
	 */
	private Integer score;
	/**
	 * 服务态度&
	 */
	private Integer service;
	/**
	 * 满意度
	 */
	private Integer grade;
	/**
	 * 商品评分&
	 */
	private Integer level;
	/**
	 * 上传截图&
	 */
	private String pic;

	@TableField(exist = false)
	private List<String> picList;

	private Integer state;

	/**
	 * 被评论业务人员ID
	 */
	private Long bpuid;
	private Long uid;
	private Long mid;
	private Long mpid;
	private Date createtime;
	private Date modifytime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getOid() {
		return oid;
	}

	public void setOid(Long oid) {
		this.oid = oid;
	}

	public Long getGid() {
		return gid;
	}

	public void setGid(Long gid) {
		this.gid = gid;
	}

	public Integer getIsAnonymous() {
		return isAnonymous;
	}

	public void setIsAnonymous(Integer isAnonymous) {
		this.isAnonymous = isAnonymous;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getAvatarpic() {
		return avatarpic;
	}

	public void setAvatarpic(String avatarpic) {
		this.avatarpic = avatarpic;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public Integer getService() {
		return service;
	}

	public void setService(Integer service) {
		this.service = service;
	}

	public Integer getGrade() {
		return grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public List<String> getPicList() {
		return picList;
	}

	public void setPicList(List<String> picList) {
		this.picList = picList;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getGname() {
		return gname;
	}

	public void setGname(String gname) {
		this.gname = gname;
	}

	public String getGoodspic() {
		return goodspic;
	}

	public void setGoodspic(String goodspic) {
		this.goodspic = goodspic;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getBpuid() {
		return bpuid;
	}

	public void setBpuid(Long bpuid) {
		this.bpuid = bpuid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Comment{" +
				"id=" + id +
				", oid=" + oid +
				", gid=" + gid +
				", isAnonymous=" + isAnonymous +
				", nickname=" + nickname +
				", avatarpic=" + avatarpic +
				", info=" + info +
				", score=" + score +
				", service=" + service +
				", grade=" + grade +
				", level=" + level +
				", pic=" + pic +
				", state=" + state +
				", uid=" + uid +
				", mid=" + mid +
				", mpid=" + mpid +
				", createtime=" + createtime +
				", modifytime=" + modifytime +
				"}";
	}
}